#Python Rewrite